package com.lwq.imserver.model;

import com.lwq.imserver.model.system.SysUser;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2022/1/29 22:13
 */
@Data
@Document(collection = "chat_room")
public class ChatRoom implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    private String id;

    private List<SysUser> members;

    private String createId;

    private Long timestamp;
}
